Use text properties for color escape highlighting in Shell mode.
authorChong Yidong <cyd@gnu.org>
Sun, 19 Feb 2012 13:59:42 +0000 (21:59 +0800)
committerChong Yidong <cyd@gnu.org>
Sun, 19 Feb 2012 13:59:42 +0000 (21:59 +0800)
commitcd49cea06bb1c492d4d024889f3f320bf4c9b507
treea1b7ac4f53561fb8f371a86496fe2d12e66c4ed4
parentd1fd0266da88fcdb667be1aec7b2b59669660a50
Use text properties for color escape highlighting in Shell mode.

* ansi-color.el: Don't set comint-output-filter-functions; it is
now in the initial value defined in comint.el.
(ansi-color-apply-face-function): New variable.
(ansi-color-apply-on-region): Use it.
(ansi-color-apply-overlay-face): New function.

* comint.el: Require ansi-color.
(comint-output-filter-functions): Add ansi-color-process-output.

* shell.el (shell): No need to require ansi-color.
(shell-mode): Use ansi-color-apply-face-function to highlight
color escapes using font-lock-face property.
lisp/ChangeLog
lisp/ansi-color.el
lisp/comint.el
lisp/shell.el